package com.wenbing.miio.core;

import java.io.IOException;
import java.net.SocketAddress;

/**
 * @author wen bing
 * @projectName: miio
 * @package: com.wenbing.miio.core
 * @className: RB
 * @date 2024/09/21 12:21
 **/
public interface NetworkInterface extends Bootable {

    /**
     * 网络接口地址
     */
    SocketAddress getAddress();

    /**
     * 接收帧数据
     */
    RowFrame receiveRowFrame() throws IOException;

    /**
     * 发送帧数据
     */
    void sendRowFrame(RowFrame frame) throws IOException;
}
